//
//  DZCustomerView.m
//  DaoZiJinFu
//
//  Created by dzjf on 2017/4/27.
//  Copyright © 2017年 dzjf. All rights reserved.
//

#import "DZCustomerView.h"

@implementation DZCustomerView

+ (instancetype)loadView {
    return [[[NSBundle mainBundle] loadNibNamed:@"DZCustomerView" owner:nil options:nil] lastObject];
}
- (IBAction)telephoneAction:(id)sender {
     [[NSNotificationCenter defaultCenter]postNotificationName:@"hotPhoneNotification" object:self];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    _customerView.layer.cornerRadius = BTN_RADIUS;
    _customerView.layer.borderColor = BLUE_COLOR.CGColor;
    _customerView.layer.borderWidth = 1;
    _customerView.layer.masksToBounds = YES;
    _phoneNumber.textColor = BLUE_COLOR;
    _custonerNumber.backgroundColor = BACKGROUND_COLOR;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
